<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>系统职务授权</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/lib/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/lib/layuiadmin/style/admin.css" media="all">
    <link rel="stylesheet" href="/static/lib/layuiadmin/style/formSelects-v4.css">
    <link rel="stylesheet" href="./postEmpower.css" media="all">
</head>
<body>

<div class="layui-fluid" id="LAY-component-grid-mobile">
    <div class="layui-row layui-col-space10">
        <div class="layui-col-xs4">
            <div class="layui-card">
                <div class="layui-card-header">机构</div>
                <div class="layui-card-body" style="overflow:auto;height: 700px;">
                    <div class="layui-form">
                        <ul id="orgTree"></ul>
                    </div>
                </div>
            </div>
        </div>

        <div class="layui-col-xs4 full-height">
            <div class="layui-card">
                <div class="layui-card-header postText"></div>
                <div class="layui-card-body" style="overflow:auto;height: 700px;">
                    <table class="layui-table" lay-filter="test" id="test"></table>
                </div>
            </div>
        </div>

        <div class="layui-col-xs4 full-height">
            <div class="layui-card" style="height: 50%">
                <div class="layui-card-header funText"></div>
                <div class="layui-card-body" style="overflow:auto;height:320px;">
                    <form class="layui-form" action="" lay-filter="example">
                        <div class="layui-form-item">
                            <label class="layui-form-label">选择功能</label>
                            <div class="layui-input-block">
                                <div id="functionTree"></div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

            <div class="layui-card max-height">
                <div id="supForm" style="display:none">
                    <form class="layui-form " action="" lay-filter="component-form-group">
                        <div class="layui-form-item" style="margin-top: 10px">
                            <label class="layui-form-label custom-label-width">岗位名称：</label>
                            <div class="layui-input-block">
                                <p id="postName" style="height:38px; line-height: 38px"></p>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label custom-label-width">上级岗位：</label>
                            <div class="layui-input-block">
                                <span id="SuperiorPost" class="layui-btn layui-btn layui-btn-sm ">添加</span>
                            </div>

                            <script type="text/html" id="barDemo">
                                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon">&#xe640;</i></a>
                                <a class="layui-btn layui-bg-orange layui-btn-xs" lay-event="up"><i class="layui-icon">&#xe619;</i></a>
                                <a class="layui-btn layui-bg-orange layui-btn-xs" lay-event="down"><i class="layui-icon">&#xe61a;</i></a>
                            </script>
                            <table id="upPost" class="layui-table" lay-filter="upPost"></table>
                        </div>

                       <!-- <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" style="margin-left: 65%; margin-top: 80px" lay-submit lay-filter="formDemo">提交</button>
                            </div>
                        </div>-->
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<div id="loadPostTree" style="display: none">
    <form class="layui-form" >
        <div class="layui-form-item">
            <div id="postTree"></div>
        </div>
    </form>
</div>
</html>
<script type="text/javascript" src="../../common/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/static/lib/layuiadmin/layui/layui.js"></script>
<script type="text/javascript" src="../../common/common.js"></script>
<script type="text/javascript" src="../../common/utils.js"></script>
<script type="text/javascript" src="postEmpower.js"></script>